/*
Rule 14.7 (r)
A function shall have a single point of exit at the end of the function.
*/


#include <stdio.h>

typedef int int32_t;



int32_t b;

int32_t f(void);
int32_t f(void)
{ 
  scanf("%d",&b);
  switch(b){
    case 1: return(0);
	case 2: return(1);
	default: printf("end\n");
  }  
}

int32_t main(void)
{

  int32_t i=0;
  
  i=f();
  return 0;
}
